<template>
    <div>
        <headers title="我的"></headers>
        <cards :list="list"></cards>
        
    </div>
</template>

<script setup>
import headers from '@/components/headers.vue';
import cards from '@/components/cards.vue';
import { ref } from 'vue'
import { searchApi } from '@/api/api';
let list = ref([])
const getsearch = () => {
    searchApi().then((res) => {
        list.value = res.data.message.goods
    })
}
getsearch()
</script>

<style lang="scss" scoped></style>